package com.clock.domain.dto;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Api(tags = "关注/取关状态信息")
@ApiModel
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Data
public class FollowStateDTO {

    @ApiModelProperty(value = "关注id", required = false, notes = "新关注不需要该id")
    private Long followId;

    @ApiModelProperty(value = "用户id", required = true)
    private Long userId;

    @ApiModelProperty(value = "用户关注id", required = true)
    private Long followUserId;

    @ApiModelProperty("关注状态: 0-取消关注;1-正在关注")
    private Integer isFollowed;

    @ApiModelProperty("关注行为: 0-取消关注;1-关注")
    private Integer followAction;

    @ApiModelProperty(value = "创建时间",notes = "不需要传递该属性")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty(value = "更新时间", notes = "不需要传递该属性")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
